import { create } from 'zustand'
import { User } from '@/types/api'

export const useBearStore = create<{
  userToken: string
  userEmail: string
  userInfo: User.userInfo | null
  updateUserInfo: (userInfo: User.userInfo) => void
}>(set => ({
  userToken: '',
  userEmail: '',
  userInfo: null,
  updateUserInfo: (userInfo: User.userInfo) => set({ userInfo })
}))

export const useUserListStore = create()
